<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>splitDrag demo</title> 
  <script type="module">
    import splitDrag from './splitDrag.js'
    splitDrag({
      length: 2,  
      boxId: '#dragtab-box',  
      type: 1,
    });
    
    splitDrag({
      length: 3,  
      boxId: '#dragtab-box2',  
      type: 1,
    });
  </script>
  <style>
  .noselect{
        user-select: none;
  }
    .dbox{
      float:left;
      width: 35%;
      border: 1px solid #ddd;
      margin: 5%;
    }
    .dtab{
      width: 100%;
      height: 200px;
      background: #eee;
      display:flex;
      align-items: center;
      justify-content: center;
    }
    .dmod{
      width: 100%;
      height: 20px;
      cursor: row-resize;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  </style>
</head>
<body>
  <div class="dbox" id="dragtab-box">
    <div class="dtab dragtab-table1">
      内容区域1
    </div>
    <div class="dmod dragtab-module1">
      拖拽区域1
    </div>
    <div class="dtab dragtab-table2">
      内容区域2
    </div>
  </div>

  <div class="dbox" id="dragtab-box2">
    <div class="dtab dragtab-table1">
      内容区域1
    </div>
    <div class="dmod dragtab-module1">
      拖拽区域1
    </div>
    <div class="dtab dragtab-table2">
      内容区域2
    </div>
    <div class="dmod dragtab-module2">
      拖拽区域2
    </div>
    <div class="dtab dragtab-table3">
      内容区域3
    </div>
  </div>
</body>
</html>